<%--
  Created by IntelliJ IDEA.
  User: jimmyhsu
  Date: 2016/12/14
  Time: 23:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="../../static/style/myStyle.css"/>
    <link rel="stylesheet" href="../../static/css/fade_in.css"/>
    <link rel="stylesheet" href="../../static/css/bootstrap.css"/>
    <style type="text/css">
        a:link {color: #c2c507;}
        a:hover {color: #a1a407;}
        a:active {color: #c2c507;}
    </style>
</head>
<body style="background-color: transparent; color: #ffffff;font-family: Helvetica Neue, Helvetica, Arial, sans-serif;">
<%@include file="Do/checkAdminLogin.jsp"%>
<br>&nbsp;
<img src="../../static/image/arrow1.png" style="-ms-transform:rotate(90deg); /* IE 9 */
    -moz-transform:rotate(90deg); /* Firefox */
    -webkit-transform:rotate(90deg); /* Safari and Chrome */
    -o-transform:rotate(90deg); /* Opera */" onclick="history.go(-1);">
<h1 align='center'>导入表格要求</h1>
<div style="text-align: center;">
<p>
    1.请从本网站上<a href="../Admin/download/学生导入.xls">下载</a>表格并填写<br/>
    2.表格的第一行是属性名，第二行开始是具体学生信息。属性名可以有：院系，所属支部，姓名，学号，性别，年级，宿舍，邮箱，手机号码，类别，班级。<br/>
    3.******学号和姓名是必填的。******<br/>
    4.如果数据库中已存在该学号的学生，则表格中的信息会覆盖数据库。<br/>
</p>
</div>
<div align='center'>
    <form action="uploadStudentTable" method="post"
          enctype="multipart/form-data">
        <input id="lefile" name="lefile" type="file" style="display:none">
        <div class="input-append">
            <span id="filename" class="input-xlarge uneditable-input">请选择文件</span>
            <a class="btn" onclick="$('input[id=lefile]').click();">Browse</a>
        </div>
        <br><br>
        <input class="green_btn" type="submit" name="submit" value="上传" />
    </form>
</div>
<p align='center'><b>图表实例</b></p>
<div style="text-align: center;">
<img src='../../static/image/studentTableExample.bmp' width='80%' class="fadeInBox"/>
</div>

</body>
<script src="../../static/js/jquery-1.10.2.js"></script>
<script src="../../static/js/bootstrap.js"></script>
<script type="text/javascript">
    $('input[id=lefile]').change(function() {
        var str = $(this).val();
        var filename=str.replace(/.*(\/|\\)/, "");
        $('#filename').html(filename);
    });
</script>
</html>
